<?php

       require "../gobal.php";


       $sql="select * from device";

       $devices = fetch_rows($sql) ;  

?>

<div class="navbar">
  <div class="navbar-inner">
    <div class="left sliding"><a href="index.html" class="back link"><i class="icon icon-back"></i></a></div>
    <div class="center sliding">选择设备</div>
    <div class="right"><a href="customer/center.php" class="link icon-only"><i class="icon icon-user"></i></a></div>
  </div>
</div>
<div class="pages navbar-through">
  <div data-page="select-device-page" class="page">
    <div class="page-content">


       <div class="brand-list shadow">
        
            <div class="brand-item active"></div>
        
       </div>



       <div class="attr-list">
            <div class="top-level-title">请选择机型</div>
                <div class="sub-level-list">
					    <?php 

                              foreach ($devices as $device) {

                              echo   "<div class='sub-level-item-warp'><div class='sub-level-item' data-id='".$device["id"]."'>".$device["name"]."</div></div>";

							  }
					     ?>


					   
<div class="clear"></div>
                </div>

      </div>

    <input id="txtBrandType" value="1" type="hidden" />
    </div>
  </div>
</div>
